//
//  ITImagePicker.h
//  ImageClipTool
//
//  Created by Seven on 16/7/6.
//  Copyright © 2016年 LazyDuan. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger,ImagePickerType){
    ImagePickerCamera = 0,
    ImagePickerPhoto = 1
};

typedef enum : NSUInteger {
    ITImageScenePortrait,
    ITImageSceneLink,
    ITImageScenePost,
} ITImageScene;

@class ITImagePicker;
@protocol ITImagePickerDelegate <NSObject>

- (void)imagePicker:(ITImagePicker *)imagePicker didFinished:(UIImage *)editedImage;
- (void)imagePickerDidCancel:(ITImagePicker *)imagePicker;

@end

@interface ITImagePicker : NSObject
+ (instancetype) sharedInstance;
//delegate
@property (nonatomic, assign) id<ITImagePickerDelegate> delegate;
//choose original image
- (void)showOriginalImagePickerWithType:(ImagePickerType)type inViewController:(UIViewController *)viewController;
//Custom cut. Cutting box's scale(height/Width) 0~1.5 default is 1
- (void)showImagePickerWithType:(ImagePickerType)type inViewController:(UIViewController *)viewController scene:(ITImageScene)scene;

@end
